/**
 * Created by syt on 2017/8/25.
 */
$(function(){
    init_business_info();

});

function init_business_info(){
    var url = server + "/server/business/businessRest/current.json";
    $.get(url, function(json){
        if(20000 === json.code){
            $("#username").val(json.data.username);
            $("#businessName").val(json.data.businessName);
            $("#businessPhone").val(json.data.businessPhone);
            $("#address").val(json.data.address);
            $("#industryCategory").val(json.data.industryCategory);
            $("#employeeNumber").val(json.data.employeeNumber);
            var x = parseFloat(json.data.lonAndlat.split(",")[0]);
            var y = parseFloat(json.data.lonAndlat.split(",")[1]);
            var lnglatXY = [x, y]; //已知点坐标
            regeocoder(lnglatXY);
        }

    });
}

function improve_info(){
    var url = server + "/server/business/workMessageRest/createParttimeJob.json";
    var form = $("create-job-form").serialize();
    $.post(url, form, function(json){

    });
}